WeChatApp.component('myComponent', {
  template: '<h1>Hello </h1>',
  bindings: { 
    firstName: '<', 
    lastName: '<' 
  },
  controller: function() {
    this.getFullName = function() {
      return this.firstName + ' ' + this.lastName;
    };
  }
});